package com.zretc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zretc.dao.UsersDao;
import com.zretc.entity.Users;

@Service
public class UsersServiceImpl implements UsersService {
	//service需要依赖dao
	@Autowired
	private UsersDao usersDao;

	@Override
	public Users getUserById(int userid) {
		return usersDao.getUserById(userid);
	}
	
	public  List<Users> getUsers() {
		return usersDao.getUsers();
	}

}
